extends ./common/layout
block content
  section#content
    section.vbox
      section.scrollable.wrapper
        p.h4 文章修改页
        form(action="/admin/update",method='post')
            input(type="hidden",name='blog[_id]',value='#{blog.id}')
            .form-group
                label.col-sm-1(for="blog-title") 标题
                .col-sm-11
                    input(type="text",name='blog[title]',value="#{blog.title}").form-control#blog-title
            .form-group
                label.col-sm-1(for="blog-content") 内容
                .col-sm-11
                  script(id="container",name="blog[content]",type="text/plain") #{blog.content}
            .form-group
              input.btn.btn-info.btn-sm(type="submit",value="提交")
  script(src="/ueditor/ueditor.config.js")
  script(src="/ueditor/ueditor.all.js")
  script.
    var ue = UE.getEditor('container',{
    autoHeightEnabled:false,
    toolbars: []
    });
